home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / security-faq < prev    next >
Encoding:
Internet Message Format  |  1994-03-30  |  75.3 KB

  1. Subject: FAQ: Computer Security Frequently Asked Questions
  2. Newsgroups: alt.security,comp.security.misc,comp.security.unix,news.answers
  3. From: Alec.Muffett@UK.Sun.COM
  4. Date: 29 Mar 1994 09:50:10 GMT
  5.  
  6. Archive-name: security-faq
  7. Last-modified: 1993/12/3
  8. Version: 2.2
  9.  
  10.  
  11. Version History:
  12.  
  13. 2.2    LD_PRELOAD comment
  14. 2.1    New story, TAMU package info
  15. 2.0    MERGE IN LOTS OF NEW INFORMATION
  16. 1.6    Minor revisions, meant to bring it a bit more up to date.
  17. 1.5    Structural revision.
  18. 1.4    Fixed John Haugh's name, modified entry for "shadow"
  19.     Added Ulf Kieber's update on the rainbow series
  20.     Added bit about Karila paper
  21. 1.3:    Tweak for comp.security.misc/news.answers
  22.     Updated entry for orange book (foreign purchases)
  23. 1.2:    Undocumented prior to this
  24. ---------------------------------------------------------------------------
  25.  
  26.     Almost Everything You Ever Wanted To Know About Security*
  27.                *(but were afraid to ask!)
  28.  
  29. This document is meant to answer some of the questions which regularly
  30. appear in the Usenet newsgroups "comp.security.misc", "comp.security.unix", 
  31. and "alt.security", and is meant to provide some background to the
  32. subject for newcomers to that newsgroup. 
  33.  
  34. This FAQ is maintained by Alec Muffett (Alec.Muffett@UK.Sun.COM), with
  35. contributions from numerous others; the views expressed in the document
  36. are the personal views of the author(s), and it should not be inferred
  37. that they are necessarily shared by anyone with whom the author(s) are
  38. now, or ever may be, associated.
  39.  
  40. Many thanks go to (in no particular order): Steve Bellovin, Matt Bishop,
  41. Mark Brader, Ed DeHart, Dave Hayes, Jeffrey Hutzelman, William LeFebvre,
  42. Wes Morgan, Rob Quinn, Chip Rosenthal, Wietse Venema, Gene Spafford,
  43. John Wack and Randall Atkinson.
  44.  
  45. Disclaimer: Every attempt is made to ensure that the information
  46. contained in this FAQ is up to date and accurate, but no responsibility
  47. will be accepted for actions resulting from information gained herein.
  48.  
  49. Questions which this document addresses:
  50.  
  51. Q.1 What are alt.security and comp.security.misc for?
  52. Q.2 Whats the difference between a hacker and a cracker?
  53. Q.3 What is "security through obscurity"
  54. Q.4 What makes a system insecure?
  55. Q.5 What tools are there to aid security?
  56. Q.6 Where can I get these tools?
  57. Q.7 Isn't it dangerous to give cracking tools to everyone?
  58. Q.8 Why and how do systems get broken into?
  59. Q.9 Who can I contact if I get broken into?
  60. Q.10 What is a firewall?
  61. Q.11 Why shouldn't I use setuid shell scripts?
  62. Q.12 Why shouldn't I leave "root" permanently logged on the console?
  63. Q.13 Why shouldn't I create Unix accounts with null passwords?
  64. Q.14 What security holes are associated with X-windows (and other WMs)?
  65. Q.15 What security holes are associated with NFS?
  66. Q.16 How can I generate safe passwords?
  67. Q.17 Why are passwords so important?
  68. Q.18 How many possible passwords are there?
  69. Q.19 Where can I get more information?
  70. Q.20 How silly can people get?
  71. ---------------------------------------------------------------------------
  72.  
  73. Q.1 What are alt.security and comp.security.misc for?
  74.  
  75. Comp.security.misc is a forum for the discussion of computer security,
  76. especially those relating to Unix (and Unix like) operating systems.
  77. Alt.security used to be the main newsgroup covering this topic, as well
  78. as other issues such as car locks and alarm systems, but with the
  79. creation of comp.security.misc, this may change.
  80.  
  81. This FAQ will concentrate wholly upon computer related security issues.
  82.  
  83. The discussions posted range from the likes of "What's such-and-such
  84. system like?" and "What is the best software I can use to do so-and-so"
  85. to "How shall we fix this particular bug?", although there is often a
  86. low signal to noise ratio in the newsgroup (a problem which this FAQ
  87. hopes to address).
  88.  
  89. The most common flamewars start when an apparent security novice posts a
  90. message saying "Can someone explain how the such-and-such security hole
  91. works?" and s/he is immediately leapt upon by a group of self appointed
  92. people who crucify the person for asking such an "unsound" question in a
  93. public place, and flame him/her for "obviously" being a cr/hacker.
  94.  
  95. Please remember that grilling someone over a high flame on the grounds
  96. that they are "a possible cr/hacker" does nothing more than generate a
  97. lot of bad feeling.  If computer security issues are to be dealt with in
  98. an effective manner, the campaigns must be brought (to a large extent)
  99. into the open.
  100.  
  101. Implementing computer security can turn ordinary people into rampaging
  102. paranoiacs, unable to act reasonably when faced with a new situation.
  103. Such people take an adversarial attitude to the rest of the human race,
  104. and if someone like this is in charge of a system, users will rapidly
  105. find their machine becoming more restrictive and less friendly (fun?) to
  106. use.
  107.  
  108. This can lead to embarrasing situations, eg: (in one university) banning
  109. a head of department from the college mainframe for using a network
  110. utility that he wasn't expected to.  This apparently required a lot of
  111. explaining to an unsympathetic committee to get sorted out.
  112.  
  113. A more sensible approach is to secure a system according to its needs,
  114. and if its needs are great enough, isolate it completely.  Please, don't
  115. lose your sanity to the cause of computer security; it's not worth it.
  116.  
  117.         usenet/comp.sources.misc/volume29
  118.         usenet/comp.sources.misc/volume30
  119.         usenet/comp.sources.misc/volume32
  120. ------------------------------------------------------------------
  121.  
  122. Q.2 What's the difference between a hacker and a cracker?
  123.  
  124. Lets get this question out of the way right now:
  125.  
  126. On USENET, calling someone a "cracker" is an unambiguous statement that
  127. some person persistently gets his/her kicks from breaking from into
  128. other peoples computer systems, for a variety of reasons.  S/He may pose
  129. some weak justification for doing this, usually along the lines of
  130. "because it's possible", but most probably does it for the "buzz" of
  131. doing something which is illicit/illegal, and to gain status amongst a
  132. peer group.
  133.  
  134. Particularly antisocial crackers have a vandalistic streak, and delete
  135. filestores, crash machines, and trash running processes in pursuit of
  136. their "kicks".
  137.  
  138. The term is also widely used to describe a person who breaks copy
  139. protection software in microcomputer applications software in order to
  140. keep or distribute free copies.
  141.  
  142. On USENET, calling someone a "hacker" is usually a statement that said
  143. person holds a great deal of knowledge and expertise in the field of
  144. computing, and is someone who is capable of exercising this expertise
  145. with great finesse.  For a more detailed definition, readers are
  146. referred to the Jargon File [Raymond].
  147.  
  148. In the "real world", various media people have taken the word "hacker"
  149. and coerced it into meaning the same as "cracker" - this usage
  150. occasionally appears on USENET, with disastrous and confusing results.
  151.  
  152. Posters to the security newsgroups should note that they currently risk
  153. a great deal of flamage if they use the word "hacker" in place of
  154. "cracker" in their articles.
  155.  
  156. NB: nowhere in the above do I say that crackers cannot be true hackers.
  157. It's just that I don't say that they are...
  158. ------------------------------------------------------------------
  159.  
  160. Q.3 What is "security through obscurity"
  161.  
  162. Security Through Obscurity (STO) is the belief that any system can be
  163. secure so long as nobody outside of its implementation group is allowed
  164. to find out anything about its internal mechanisms.  Hiding account
  165. passwords in binary files or scripts with the presumption that "nobody
  166. will ever find it" is a prime case of STO.
  167.  
  168. STO is a philosophy favoured by many bureaucratic agencies, and it used
  169. to be a major method of providing "pseudosecurity" in computing systems.
  170.  
  171. Its usefulness has declined in the computing world with the rise of open
  172. systems, networking, greater understanding of programming techniques, as
  173. well as the increase in computing power available to the average person.
  174.  
  175. The basis of STO has always been to run your system on a "need to know"
  176. basis.  If a person doesn't know how to do something which could impact
  177. system security, then s/he isn't dangerous.
  178.  
  179. Admittedly, this is sound in theory, but it can tie you into trusting a
  180. small group of people for as long as they live.  If your employees get
  181. an offer of better pay from somewhere else, the knowledge goes with
  182. them, whether the knowledge is replaceable or not.  Once the secret gets
  183. out, that is the end of your security.
  184.  
  185. Nowadays there is also a greater need for the ordinary user to know
  186. details of how your system works than ever before, and STO falls down a
  187. as a result.  Many users today have advanced knowledge of how their
  188. operating system works, and because of their experience will be able to
  189. guess at the bits of knowledge that they didn't "need to know".  This
  190. bypasses the whole basis of STO, and makes your security useless.
  191.  
  192. Hence there is now a need is to to create systems which attempt to be
  193. algorithmically secure (Kerberos, Secure RPC), rather than just
  194. philosophically secure.  So long as your starting criteria can be met,
  195. your system is LOGICALLY secure.
  196.  
  197. Incidentally, "Shadow Passwords" (below) are sometimes dismissed as STO,
  198. but this is incorrect, since (strictly) STO depends on restricting
  199. access to an algorithm or technique, whereas shadow passwords provide
  200. security by restricting access to vital data.
  201. ------------------------------------------------------------------
  202.  
  203. Q.4 What makes a system insecure?
  204.  
  205. Switching it on.  The adage usually quoted runs along these lines:
  206.  
  207.  "The only system which is truly secure is one which is switched off
  208.  and unplugged, locked in a titanium lined safe, buried in a concrete
  209.  bunker, and is surrounded by nerve gas and very highly paid armed
  210.  guards.  Even then, I wouldn't stake my life on it."
  211.  
  212. (the original version of this is attributed to Gene Spafford)
  213.  
  214. A system is only as secure as the people who can get at it.  It can be
  215. "totally" secure without any protection at all, so long as its continued
  216. good operation is important to everyone who can get at it, assuming all
  217. those people are responsible, and regular backups are made in case of
  218. hardware problems.  Many laboratory PC's quite merrily tick away the
  219. hours like this.
  220.  
  221. The problems arise when a need (such as confidentiality) has to be
  222. fulfilled.  Once you start putting the locks on a system, it is fairly
  223. likely that you will never stop.
  224.  
  225. Security holes manifest themselves in (broadly) four ways:
  226.  
  227. 1) Physical Security Holes.
  228.  
  229. - Where the potential problem is caused by giving unauthorised persons
  230. physical access to the machine, where this might allow them to perform
  231. things that they shouldn't be able to do.
  232.  
  233. A good example of this would be a public workstation room where it would
  234. be trivial for a user to reboot a machine into single-user mode and muck
  235. around with the workstation filestore, if precautions are not taken.
  236.  
  237. Another example of this is the need to restrict access to confidential
  238. backup tapes, which may (otherwise) be read by any user with access to
  239. the tapes and a tape drive, whether they are meant to have permission or
  240. not.
  241.  
  242. 2) Software Security Holes
  243.  
  244. - Where the problem is caused by badly written items of "privledged"
  245. software (daemons, cronjobs) which can be compromised into doing things
  246. which they shouldn't oughta.
  247.  
  248. The most famous example of this is the "sendmail debug" hole (see
  249. bibliography) which would enable a cracker to bootstrap a "root" shell.
  250. This could be used to delete your filestore, create a new account, copy
  251. your password file, anything.
  252.  
  253. (Contrary to popular opinion, crack attacks via sendmail were not just
  254. restricted to the infamous "Internet Worm" - any cracker could do this
  255. by using "telnet" to port 25 on the target machine.  The story behind a
  256. similar hole (this time in the EMACS "move-mail" software) is described
  257. in [Stoll].)
  258.  
  259. New holes like this appear all the time, and your best hopes are to:
  260.  
  261.   a: try to structure your system so that as little software as possible
  262.   runs with root/daemon/bin privileges, and that which does is known to
  263.   be robust.
  264.  
  265.   b: subscribe to a mailing list which can get details of problems
  266.   and/or fixes out to you as quickly as possible, and then ACT when you
  267.   receive information.
  268.  
  269. >From: Wes Morgan <morgan@edu.uky.ms>
  270. >
  271. > c: When installing/upgrading a given system, try to install/enable only
  272. > those software packages for which you have an immediate or foreseeable
  273. > need.  Many packages include daemons or utilities which can reveal
  274. > information to outsiders.  For instance, AT&T System V Unix' accounting
  275. > package includes acctcom(1), which will (by default) allow any user to
  276. > review the daily accounting data for any other user.  Many TCP/IP packa-
  277. > ges automatically install/run programs such as rwhod, fingerd, and
  278. > <occasionally> tftpd, all of which can present security problems.
  279. >
  280. > Careful system administration is the solution.  Most of these programs
  281. > are initialized/started at boot time; you may wish to modify your boot
  282. > scripts (usually in the /etc, /etc/rc, /etc/rcX.d directories) to pre-
  283. > vent their execution.  You may wish to remove some utilities completely.
  284. > For some utilities, a simple chmod(1) can prevent access from unauthorized
  285. > users.
  286. >
  287. > In summary, DON'T TRUST INSTALLATION SCRIPTS/PROGRAMS!  Such facilities
  288. > tend to install/run everything in the package without asking you.  Most
  289. > installation documentation includes lists of "the programs included in
  290. > this package"; be sure to review it.
  291.  
  292. 3) Incompatible Usage Security Holes
  293.  
  294. - Where, through lack of experience, or no fault of his/her own, the
  295. System Manager assembles a combination of hardware and software which
  296. when used as a system is seriously flawed from a security point of view.
  297. It is the incompatibility of trying to do two unconnected but useful
  298. things which creates the security hole.
  299.  
  300. Problems like this are a pain to find once a system is set up and
  301. running, so it is better to build your system with them in mind.  It's
  302. never too late to have a rethink, though.
  303.  
  304. Some examples are detailed below; let's not go into them here, it would
  305. only spoil the surprise.
  306.  
  307. 4) Choosing a suitable security philosophy and maintaining it.
  308.  
  309. >From: Gene Spafford <spaf@cs.purdue.edu>
  310. >The fourth kind of security problem is one of perception and
  311. >understanding.  Perfect software, protected hardware, and compatible
  312. >components don't work unless you have selected an appropriate security
  313. >policy and turned on the parts of your system that enforce it.  Having
  314. >the best password mechanism in the world is worthless if your users
  315. >think that their login name backwards is a good password! Security is
  316. >relative to a policy (or set of policies) and the operation of a system
  317. >in conformance with that policy.
  318. ------------------------------------------------------------------
  319.  
  320. Q.5 What tools are there to aid security
  321. Q.6 ...and... where can I get these tools?
  322.  
  323. ==================================================================
  324. *** This is a section which has changed very rapidly over the past
  325. *** few months; hence I am changing the format ever so slightly, in
  326. *** order to allow for expansion - Alec
  327. ==================================================================
  328.  
  329. COPS            Dan Farmer, et al.
  330.  
  331. Managed/largely written by Dan Farmer, COPS is a suite of shell scripts
  332. which forms an extensive security testing system; there's a rudimentary
  333. password cracker, and routines to check the filestore for suspicious
  334. changes in setuid programs, others to check permissions of essential
  335. system and user files, and still more to see whether any system software
  336. behaves in a way which could cause problems.
  337.  
  338. The software comes in two versions - one written in Perl and one
  339. (largely equivalent) written in shell scripts.  The latest version is
  340. very up-to-date on Unix Security holes.
  341.  
  342. COPS V1.04 is available for FTP from cert.org in pub/cops and
  343. archive.cis.ohio-state.edu in pub/cops.
  344. ------------------------------------------------------------------
  345. Crack            Alec Muffett
  346. UFC            Michael Glad
  347.  
  348. Crack is a program written with one purpose in mind: to break insecure
  349. passwords.  It is probably the most efficent and friendly password
  350. cracker that is publically available, with the ability to let the user
  351. to specify precisely how to form the words to use as guesses at users
  352. passwords.
  353.  
  354. It also has an inbuilt networking capability, allowing the load of
  355. cracking to be spread over as many machines as are available on a
  356. network, and it is supplied with an optimised version of the Unix crypt()
  357. algorithm.
  358.  
  359. An even faster version of the crypt() algorithm, "UFC" by Michael Glad,
  360. is freely available on the network, and the latest versions of UFC and
  361. Crack are compatible and can be easily hooked together.
  362.  
  363. Crack v4.1f and UFC are available from:  ftp.uu.net (137.39.1.9)
  364.  
  365. In the directory:       /usenet/comp.sources.misc/volume28
  366. As:                     crack/part01.Z to part05.Z      ( 5 files )
  367. And                     ufc-crypt/part01.Z & part02.Z   ( 2 files )
  368.  
  369. NB: For people with access to a Connection Machine:
  370.  
  371. >From: glad@daimi.aau.dk (Michael Glad)
  372. >
  373. >A UNIX password cracker for the Thinking Machine CM/2 and CM/200
  374. >Connection Machines is available for FTP from
  375. >
  376. >    ftp.denet.dk:/pub/misc/cm200-UFC.tar.Z
  377. >
  378. > This is a password cracker for the Thinking Machines CM/2 and CM/200
  379. > Connection Machines. It features
  380. >
  381. >     o A standalone dictionary preprocessor accepting a
  382. >      language of rewrite rules compatible with the one
  383. >      found in Alec Muffets 'Crack' password cracker as of
  384. >         release 4.1f.
  385. >
  386. >    o An optimized port of the UFC-crypt: a fast implementation
  387. >      of the UNIX crypt(3) function developed by Michael Glad and
  388. >      donated to the Free Software Foundation (FSF).
  389. >
  390. >    o The password cracker itself. It supports restart of crashed
  391. >      runs and incremental use. Incremental use means that when
  392. >      you use a fixed dictionary, the cracker can maintain a status
  393. >      file of already cracked passwords and passwords considered
  394. >      uncrackable (because they've been tested in previous runs).
  395. >      Thus it only has to waste CPU cycles on new accounts and accounts
  396. >      with changed passwords.
  397. >
  398. >    o When run with a _large_ dictionary (a 1 million word dictionary
  399. >      obtained by preprocessing /usr/dict/words), the cracker can
  400. >      test in excess of 50,000 passwords a second on a CM/200 with
  401. >      8192 processors.
  402. ------------------------------------------------------------------
  403. CrackLib        Alec Muffett
  404.  
  405. Cracklib is a C LIBRARY containing a routine which may be wired into all
  406. sorts of "passwd"-like programs; not just Unix, but with a little effort
  407. it could probably go onto VMS (this is being worked upon), or many other
  408. systems.
  409.  
  410. Using "CrackLib" allows you to wire proactive password checking into
  411. _any_ of your applications; it is an offshoot of the the version 5
  412. "Crack" software, and contains a considerable number of ideas nicked
  413. from the new software.
  414.  
  415. CrackLib was posted to "comp.sources.misc", and therefore available from
  416. any major usenet archive.  A reference copy (+ large dictionary) can be
  417. FTP'ed from:
  418.  
  419.      black.ox.ac.uk:~ftp/src/security/cracklib25.tar.Z
  420.  
  421. NB: if you search for CrackLib on "Archie", care should be taken to get
  422. the package from a comp.sources.misc archive; beware confusing it with a
  423. package of the same name, which was hacked into "npasswd".
  424. ------------------------------------------------------------------
  425. NPasswd            Clyde Hoover
  426. Passwd+            Matt Bishop
  427. Shadow            John F. Haugh II
  428.  
  429. Passwd+ & NPasswd: these programs are written to redress the balance in
  430. the password cracking war.  They provide replacements for the standard
  431. "passwd" command, but prevent a user from selecting passwords which are
  432. easily compromised by programs like Crack.
  433.  
  434. The usual term for this type of program is a 'fascist' password program.
  435.  
  436. NPasswd: Currently suffering from being hacked about by many different
  437. people, in order to provide compatibility for System V based systems,
  438. NIS/YP, shadow password schemes, etc.  Version 2.0 is in the offing, but
  439. many versions exist in many different configurations.
  440.  
  441. Passwd+: "alpha version, update 3" - beta version due soon.  Available
  442. from dartmouth.edu as pub/passwd+.tar.Z
  443.  
  444. Shadow: is a set of program and function replacements (compatible with
  445. most Unixes) which implements shadow passwords, ie: a system where the
  446. plaintext of the password file is hidden from all users except root,
  447. hopefully stopping all password cracking attempts at source.  In
  448. combination with a fascist passwd frontend, it should provide a good
  449. degree of password file robustness.
  450.  
  451. >From: jfh@rpp386.cactus.org (John F. Haugh II)
  452. >Shadow does much more than hide passwords.  It also provides for
  453. >terminal access control, user and group administration, and a few
  454. >other things which I've forgotten.  There are a dozen or more
  455. >commands in the suite, plus a whole slew of library functions.
  456.  
  457. Shadow is available from the comp.sources.misc directory at any major
  458. USENET archive - relevant files are in:
  459.  
  460.         usenet/comp.sources.misc/volume38
  461.         usenet/comp.sources.misc/volume39
  462.  
  463. - the contents of both of which are needed, for a full set of patches.
  464.  
  465. Given that the latest release of Shadow has a hook for "CrackLib"
  466. support, it now ranks as a full blown fascist password program, on top
  467. of its other functionality.
  468.  
  469. CrackLib support is expected in Passwd+, in the near future.
  470. ------------------------------------------------------------------
  471. TCP Wrappers        Wietse Venema
  472.  
  473. These are programs which provide front-end filters to MOST of the
  474. network services which Unix provides by default.
  475.  
  476. If installed, they can curb otherwise unrestricted access to potential
  477. dangers like incoming FTP/TFTP, Telnet, etc, and can provide extra
  478. logging information, which may be of use if it appears that someone is
  479. trying to break in.
  480.  
  481. From the BLURB
  482.  
  483. >With these programs you can monitor and control who connects to your
  484. >TFTP, EXEC, FTP, RSH, TELNET, RLOGIN, FINGER, and SYSTAT network
  485. >services, and many others.
  486. >
  487. >The programs can be installed without any changes to existing software
  488. >or configuration files. By default, they just log the remote host name
  489. >and do some sanity checks on the origin of the request. No information
  490. >is exchanged with the remote client process.
  491. >
  492. >Significant differences with respect to the previous release:
  493. >
  494. >    - Easier to install: ready-to-use build procedures for many common
  495. >      UNIX implementations (sun, ultrix, hp-ux, irix, aix, ...).
  496. >
  497. >    - Support for the System V.4 TLI network programming interface
  498. >      (Solaris, DG/UX etc.).  In case of TLI applications on top of
  499. >      TCP/IP, the wrappers provide the same functionality as with
  500. >      socket-based applications.
  501. >
  502. >    - A more secure finger tool for automatic reverse finger probes.
  503. >
  504. >    - New extension language keywords:  "severity", to adjust the log
  505. >      noise level; "allow" and "deny", to keep all access-control rules
  506. >      within a single file.
  507. >
  508. >    - More support for selective remote username lookups.
  509. >
  510. >    - More workarounds for System V bugs: IRIX username lookups, and
  511. >      SCO problems with UDP.
  512. >
  513. >      The default mode of operation (no TLI support) should be backwards
  514. >      compatible with earlier versions. The library interface has changed,
  515. >      though, and programs that depend on the libwrap.a library will have to
  516. >      be recompiled before they can be relinked.
  517. >
  518. >      Wietse Venema (wietse@wzv.win.tue.nl)
  519.  
  520. TCP Wrappers are available for anonymous FTP from:
  521.  
  522.         cert.org:pub/tools/tcp_wrappers
  523. ------------------------------------------------------------------
  524. SecureLib        William LeFebvre
  525.  
  526. >From: phil@pex.eecs.nwu.edu
  527. >You may want to add a mention of securelib, a security enhancer
  528. >available for SunOS version 4.1 and higher.
  529.  
  530. >Securelib contains replacement routines for three kernel calls:
  531. >accept(), recvfrom(), recvmsg().  These replacements are compatible with
  532. >the originals, with the additional functionality that they check the
  533. >Internet address of the machine initiating the connection to make sure
  534. >that it is "allowed" to connect.  A configuration file defines what
  535. >hosts are allowed for a given program.  Once these replacement routines
  536. >are compiled, they can be used when building a new shared libc library.
  537. >The resulting libc.so can then be put in a special place.  Any program
  538. >that should be protected can then be started with an alternate
  539. >LD_LIBRARY_PATH.
  540.  
  541. The latest version of securelib is available via anonymous FTP from the
  542. host "eecs.nwu.edu".  It is stored in the file "pub/securelib.tar".
  543. ------------------------------------------------------------------
  544. ISS            Chris Klaus
  545. YPX            Rob Nauta
  546.  
  547. >Internet Security Scanner (ISS) is one of the first multi-level security
  548. >scanners available to the public.  It was designed to be flexible and
  549. >easily portable to many unix platforms and do its job in a reasonable
  550. >amount of time.  It provides information to the administrator that will
  551. >fix obvious security misconfigurations.
  552. >
  553. >ISS does a multi-level scan of security, not just searching for one
  554. >weakness in the system.  To provide this to the public or at least to
  555. >the security conscious crowd may cause people to think that it is too
  556. >dangerous for the public, but many of the (cr/h)ackers are already aware
  557. >of these security holes and know how to exploit them.
  558. >
  559. >These security holes are not deep in some OS routines, but standard
  560. >misconfigurations that many domains on Internet tend to show.  Many of
  561. >these holes are warned about in CERT and CIAC advisories.  This is the
  562. >first release of ISS and there is still much room for improvement.
  563.  
  564. [...A simplistic description of ISS might be that it is to the Unix
  565. Network Services, what COPS is to the Unix filesystem; ie: a tool to
  566. allow a systems administrator to find potential holes, giving him/her a
  567. chance to solve the problem BEFORE a cracker attack an occur.
  568.  
  569. ISS and an auxilliary program, YPX, have been recently posted to
  570. comp.sources.misc.  Because ISS is in a early stage of development,
  571. check an "Archie" site for the most up-to-date information...Alec]
  572. ------------------------------------------------------------------
  573. TripWire        Gene Kim, Gene Spafford
  574.  
  575. [From the Announce file]
  576.  
  577. >Tripwire is an integrity-monitor for Unix systems.  It uses several
  578. >checksum/signature routines to detect changes to files, as well as
  579. >monitoring selected items of system-maintained information.  The system
  580. >also monitors for changes in permissions, links, and sizes of files and
  581. >directories.  It can be made to detect additions or deletions of files
  582. >from watched directories.
  583. >
  584. >The configuration of Tripwire is such that the system/security
  585. >administrator can easily specify files and directories to be monitored
  586. >or to be excluded from monitoring, and to specify files which are
  587. >allowed limited changes without generating a warning.  Tripwire can also
  588. >be configured with customized signature routines for site-specific
  589. >checks.
  590. >
  591. >Tripwire, once installed on a clean system, can detect changes from
  592. >intruder activity, unauthorized modification of files to introduce
  593. >backdoor or logic-bomb code, (if any were to exist) virus activity in
  594. >the Unix environment.
  595. >
  596. >Tripwire is provided as source code with documentation.  The system, as
  597. >delivered, performs no changes to system files and does not require root
  598. >privilege to run (in the general case).  The code has been beta-tested
  599. >in a form close to that of this release at over 100 sites world-wide.
  600. >Tripwire should work on almost any version of Unix, from Xenix on
  601. >80386-based machines to Cray and ETA-10 supercomputers.
  602. >
  603. >Tripwire may be used without charge, but it may not be sold or modified
  604. >for sale.  Tripwire was written as a project under the auspices of the
  605. >COAST Project at Purdue University.  The primary author was Gene Kim,
  606. >with the aid and under the direction of Gene Spafford (COAST director).
  607. >
  608. >Copies of the Tripwire distribution may be ftp'd from ftp.cs.purdue.edu
  609. >from the directory pub/spaf/COAST/Tripwire.  The distribution is
  610. >available as a compressed tar file, and as uncompressed shar kits.  The
  611. >shar kit form of Tripwire version 1.0 will also be posted to
  612. >comp.sources.unix on the Usenet.
  613. >
  614. >A mailserver exists for distribution and to support a Tripwire mailing
  615. >list.  To use the mail server, send e-mail to
  616. >"tripwire-request@cs.purdue.edu" with a message body consisting solely
  617. >of the word "help".  The server will respond with instructions on how to
  618. >get source, patches, and how to join the mailing list.
  619. >
  620. >Questions, comments, complaints, bugfixes, etc may be directed to:
  621. >genek@mentor.cc.purdue.edu (Gene Kim)
  622. >spaf@cs.purdue.edu (Gene Spafford)
  623. ------------------------------------------------------------------
  624. TAMU             Dave Safford, Doug Schales, Dave Hess
  625.  
  626. From the ANNOUNCE file:
  627.  
  628. >              Texas A&M Network Security Package Update
  629. >                              7/1/93
  630. >
  631. >                       Dave Safford
  632. >                       Doug Schales
  633. >                        Dave Hess
  634. >
  635. >This is an updated release of the security tools developed at the
  636. >Texas A&M University Supercomputer Center.  These tools are available
  637. >for anonymous FTP from net.tamu.edu:/pub/security/TAMU.
  638. [...]
  639. >ORIGINAL DESCRIPTION:
  640. >
  641. >Last August, Texas A&M University UNIX computers came under extensive
  642. >attack from a coordinated group of internet crackers.  This package of
  643. >security tools represents the results of over nine months of
  644. >development and testing of the software we have been using to protect
  645. >our estimated five thousand IP devices.  This package includes three
  646. >coordinated sets of tools: "drawbridge", an exceptionally powerful
  647. >bridging filter package; "tiger", a set of convenient yet thorough
  648. >machine checking programs; and "netlog", a set of intrusion detection
  649. >network monitoring programs.
  650. >
  651. >KEY FEATURES:
  652. >
  653. >For full technical details on the products, see their individual README's,
  654. >but here are some highlights:
  655. >
  656. >    DRAWBRIDGE:
  657. >        - inexpensive (PC with two SMC/WD 8013 cards)
  658. >        - high level filter language and compiler
  659. >        - powerful filtering parameters
  660. >        - DES authenticated remote filter management
  661. >        - O(1) table lookup processing even with dense class B
  662. >            net filter specifications.    
  663. >
  664. >    TIGER:
  665. >        - checks key binaries against cryptographic
  666. >          checksums from original distribution files
  667. >        - checks for critical security patches
  668. >        - checks for known intrusion signatures
  669. >        - checks all critical configuration files
  670. >        - will run on most UNIX systems, and has tailored
  671. >          components for SunOS, Next, SVR4, Unicos.
  672. >
  673. >    NETLOG:
  674. >        - efficiently logs all tcp/udp establishment attempts
  675. >        - powerful query tool for analyzing connection logs
  676. >        - "intelligent" intrusion detection program
  677. >
  678. >AVAILABILITY:
  679. >
  680. >This package is available via anonymous ftp in 
  681. >
  682. >    net.tamu.edu: pub/security/TAMU
  683. >
  684. >Due to the sensitive nature of these tools, we recommend that you
  685. >retrieve them from this location. If you do not get them from
  686. >net.tamu.edu we suggest that you use our check_TAMU script that uses
  687. >cryptographic checksums to check the distribution for any signs of
  688. >tampering. The script is available in the anonymous ftp directory above
  689. >and from an e-mail server at:
  690. >
  691. >    drawbridge-server@net.tamu.edu
  692. >
  693. >Note that there are some distribution limitations, such as the
  694. >inability to export outside the US the DES libraries used in
  695. >drawbridge; see the respective tool README's for details of any
  696. >restrictions. (Note that the DES libraries are NOT required to use
  697. >drawbridge. They just enable secure remote management of drawbridge.)
  698. >
  699. >CONTACT:
  700. >
  701. >Comments and questions are most welcome. Please address them to:
  702. >
  703. >    drawbridge@net.tamu.edu
  704.  
  705. [A wonderful paper about TAMU was presented at the 4th USENIX Security
  706. Symposium, and is reprinted in the proceedings of the same - Alec]
  707. ------------------------------------------------------------------
  708. SPI
  709.  
  710. >From: Gene Spafford <spaf@cs.purdue.edu>
  711. >Sites connected with the Department of Energy and some military
  712. >organizations may also have access to the SPI package.  Interested (and
  713. >qualified) users should contact the CIAC at LLNL for details.
  714.  
  715. >SPI is a screen-based administrator's tool that checks configuration
  716. >options, includes a file-change (integrity) checker to monitor for
  717. >backdoors and viruses, and various other security checks.  Future
  718. >versions will probably integrate COPS into the package.  It is not
  719. >available to the general public, but it is available to US Dept of
  720. >Energy contractors and sites and to some US military sites.  A version
  721. >does or will exist for VMS, too.  Further information on availabilty can
  722. >be had from the folks at the DoE CIAC.
  723.  
  724. [...A paper on SPI was recently presented at the 1993 USENIX Security
  725. symposium; apparently v2.1 has appeared on an anonymous FTP site
  726. recently, but whether this is in accordance with licencing agreements is
  727. unknown to the author of this FAQ, and anyway, he's forgotten what the
  728. IP address was, so...]
  729. ------------------------------------------------------------------
  730. TIS Firewall Toolkit    Trusted Information Systems, Inc.
  731.  
  732. >From: mjr@tis.com (Marcus J. Ranum)
  733. >
  734. >Version 1.0 of the TIS network firewall toolkit is now available for
  735. >anonymous FTP from ftp.tis.com, in directory pub/firewalls/toolkit
  736. >
  737. >WHAT IS THE TIS FIREWALL TOOLKIT?
  738. >---------------------------------
  739. >Trusted Information Systems, Inc.  (TIS) is pleased to provide the TIS
  740. >Firewall Toolkit, a software kit for building and maintaining
  741. >internetwork Firewalls.  It is distributed in source code form, with all
  742. >modules written in the C programming language and runs on many BSD UNIX
  743. >derived platforms.  The Toolkit is being made available for use as
  744. >specified in the license agreement (LICENSE).
  745. >
  746. >The firewall toolkit is a set of programs, configuration practices, and
  747. >documentation intended to help individuals who are trying to build
  748. >internet firewalls.  Included with the kit are complete sources for FTP,
  749. >rlogin, and telnet application proxies, user authentication management,
  750. >compartmented SMTP, and logging/log reduction.
  751. >
  752. >USERS' GROUP
  753. >------------
  754. >TIS maintains the electronic-mail users' group <fwall-users@tis.com> for
  755. >discussion of the toolkit.  To join, send electronic mail to
  756. ><fwall-users-request@tis.com>.
  757. >
  758. >TIS Firewall Toolkit technical questions, license issues, bug reports,
  759. >etc.  should be addressed to <fwall-support@tis.com>.
  760. >
  761. >Information about other TIS network security products or commercial
  762. >licensing requests should be sent to <netsec@tis.com> or by telephone to
  763. >(301) 854-6889.
  764. >
  765. >
  766. >The contents of pub/firewalls/toolkit are as follows:
  767. >README                  - This file
  768. >fwtk-doc-only.tar.Z     - Toolkit documentation
  769. >fwtk.tar.Z              - Toolkit sources and Makefiles (no documentation)
  770. >US-only                 - Directory containing US-only software. If you
  771. >                          are not accessing this from a site in the US or
  772. >                          canada you will not be able to FTP these files.
  773. >               The toolkit is still useable without these files.
  774. ------------------------------------------------------------------
  775. SOCKS            Ying-Da Lee/David Koblas
  776.  
  777. >From: ylee@syl.dl.nec.com (Ying-Da Lee)
  778. >
  779. >(This is a package that allows hosts behind a firewall the use of
  780. >finger, ftp, telnet, xgopher, and xmosaic to access the resources
  781. >outside of the firewall while maintaining the security requirements.)
  782. >
  783. >A new release of SOCKS is available for anonymous ftp from
  784. >
  785. >    host    ftp.inoc.dl.nec.com (143.101.112.3),
  786. >    file    pub/security/socks.cstc.4.0.tar.gz
  787. >
  788. >This version is intended to run with identd user verification (RFC 1413),
  789. >which is available as file pub/security/pidentd-2.1.2.tar.gz.
  790. >
  791. >Both of these are in Gnu's compressed form and required gzip to
  792. >uncompress them.  If you don't already have that you can also pick up
  793. >the file pub/gnu/gzip-1.1.2.tar.Z.  Remember to download them in binary
  794. >mode.
  795. >
  796. >
  797. >I am enclosing the first part of the README.1st file which describes the
  798. >new fearures.  Besides SunOS 4.1.x, the new version has also been ported
  799. >and tested on ULTRIX 4.3, IRIX 4.0.1, and partially on HPUX, thanks to
  800. >Ian Dunkin and Anthony Shipman.
  801. >
  802. >Hope you can make good use of the package.  Enjoy it.
  803. >
  804. >****
  805. >This is SOCKS, a package consisting of a proxy server (sockd) and client
  806. >programs corresponding to finger, whois, ftp, telnet, xgopher, and
  807. >xmosaic, as well as a library module (libsocks.a) for adapting other
  808. >applications into new client programs.
  809. >
  810. >The original SOCKS was written by David Koblas <koblas@netcom.com>,
  811. >which included the library module and finger, whois, and ftp clients.
  812. >
  813. >Clients programs added since the original are:
  814. >
  815. >-telnet: adapted from telnet.91.03.25 by David Borman <dab@cray.com>.
  816. > This version is supposed to be much easier than the previous one
  817. > to port to many different systems.
  818. >-xgopher: adapted from xgopher ver. 1.2 by Allan Tuchman <a-tuchman@uiuc.edu>.
  819. >-xmosaic: adapted from xmosaic ver. 1.2 by NCSA staff (contact
  820. > Marc Andreesen, <marca@ncsa.uiuc.edu>).
  821. >
  822. >The SOCKS protocol has changed with this version.  Since the server and
  823. >the clients must use the same SOCKS protocol, this server does not work
  824. >with clients of previous releases, and these clients do not work with
  825. >servers of previous releases.
  826. >
  827. >The access control mechanism has been expanded:
  828. >
  829. >-A list of users can be included along with other fields (source address,
  830. > destination address, service/port) for permission/denial of access.
  831. >-Identd is used (controlled by option -i and -I) in SOCKS server to try
  832. > to verify the actual user-ids. The code uses the library written by
  833. > Peter Eriksson <pen@lysator.liu.se> and /Pdr Emanuelsson <pell@lysator.liu.se>.
  834. >-A shell command can optionally be specified with each line. The command
  835. > is executed if the conditions of that line are satisfied. This is adapted
  836. > from the same feature and code used in the log_tcp package by Wietse
  837. > Venema <wietse@wzv.win.tue.nl>.
  838. >-Special entries (#NO_IDENTD: and #BAD_ID:) can be included to specify
  839. > shell commands to be executed when the client host doesn't run identd
  840. > and when identd's report doesn't agree with what the client prgram says.
  841. >
  842. >[...]
  843. >The package has been ported for ULTRIX 4.3 by Ian Dunkin and Anthony
  844. >Shipman, for IRIX 4.0.1 by Ian Dunkin (again), and partially for HPUX by
  845. >Anthony Shipman (again!).  (We are a small bunch of busy bees) I also
  846. >include patches by Craig Metz to SOCKSize xarchie and ncftp.  I have not
  847. >try these patches out myself though.
  848. >[...]
  849. ------------------------------------------------------------------
  850. ==================================================================
  851.  
  852. Q.7 Isn't it dangerous to give cracking tools to everyone?
  853.  
  854. That depends on your point of view.  Some people have complained that
  855. giving unrestricted public access to programs like COPS and Crack is
  856. irresponsible because the "baddies" can get at them easily.
  857.  
  858. Alternatively, you may believe that the really bad "baddies" have had
  859. programs like this for years, and that it's really a stupendously good
  860. idea to give these programs to the good guys too, so that they may check
  861. the integrity of their system before the baddies get to them.
  862.  
  863. So, who wins more from having these programs freely available? The good
  864. guys or the bad ? You decide, but remember that less honest tools than
  865. COPS and Crack tools were already out there, and most of the good guys
  866. didn't have anything to help.
  867. ------------------------------------------------------------------
  868.  
  869. Q.8 Why and how do systems get broken into?
  870.  
  871. This is hard to answer definitively.  Many systems which crackers break
  872. into are only used as a means of entry into yet more systems; by hopping
  873. between many machines before breaking into a new one, the cracker hopes
  874. to confuse any possible pursuers and put them off the scent.  There is
  875. an advantage to be gained in breaking into as many different sites as
  876. possible, in order to "launder" your connections.
  877.  
  878. Another reason may be psychological: some people love to play with
  879. computers and stretch them to the limits of their capabilities.
  880.  
  881. Some crackers might think that it's "really neat" to hop over 6 Internet
  882. machines, 2 gateways and an X.25 network just to knock on the doors of
  883. some really famous company or institution (eg: NASA, CERN, AT+T, UCB).
  884. Think of it as inter-network sightseeing.
  885.  
  886. This view is certainly appealing to some crackers, and certainly leads
  887. to both the addiction and self-perpetuation of cracking.
  888.  
  889. As to the "How" of the question, this is again a very sketchy area.  In
  890. universities, it is extremely common for computer account to be passed
  891. back and forth between undergraduates:
  892.  
  893.   "Mary gives her account password to her boyfriend Bert at another
  894.   site, who has a friend Joe who "plays around on the networks".  Joe
  895.   finds other crackable accounts at Marys site, and passes them around
  896.   amongst his friends..." pretty soon, a whole society of crackers is
  897.   playing around on the machines that Mary uses.
  898.  
  899. This sort of thing happens all the time, and not just in universities.
  900. One solution is in education.  Do not let your users develop attitudes
  901. like this one:
  902.  
  903.        "It doesn't matter what password I use on _MY_ account,
  904.             after all, I only use it for laserprinting..."
  905.                 - an Aberystwyth Law student, 1991
  906.  
  907. Teach them that use of the computer is a group responsibility.  Make
  908. sure that they understand that a chain is only as strong as it's weak
  909. link.
  910.  
  911. Finally, when you're certain that they understand your problems as a
  912. systems manager and that they totally sympathise with you, configure
  913. your system in such a way that they can't possibly get it wrong.
  914.  
  915. Believe in user education, but don't trust to it alone.
  916. ------------------------------------------------------------------
  917.  
  918. Q.9 Who can I contact if I get broken into?
  919.  
  920. If you're connected to the Internet, you should certainly get in touch
  921. with CERT, the Computer Emergency Response Team.
  922.  
  923.     To quote the official blurb:
  924.  
  925. >From: Ed DeHart
  926. > The Computer Emergency Response Team (CERT) was formed by the Defense
  927. > Advanced Research Projects Agency (DARPA) in 1988 to serve as a focal
  928. > point for the computer security concerns of Internet users.  The
  929. > Coordination Center for the CERT is located at the Software Engineering
  930. > Institute, Carnegie Mellon University, Pittsburgh, PA.
  931.  
  932. > Internet E-mail: cert@cert.org
  933. > Telephone: 412-268-7090 24-hour hotline:
  934. >     CERT/CC personnel answer 7:30a.m. to 6:00p.m. EST(GMT-5)/EDT(GMT-4),
  935. >     and are on call for emergencies during other hours.
  936.  
  937. ...and also, the umbrella group "FIRST", which mediates between the
  938. incident handling teams themselves...
  939.  
  940. >From: John Wack <wack@csrc.ncsl.nist.gov>
  941. >[...] FIRST is actually a very viable and growing
  942. >organization, of which CERT is a member.  It's not actually true that,
  943. >if you're connected to the Internet, you should call CERT only - that
  944. >doesn't do justice to the many other response teams out there and in the
  945. >process of forming.
  946.  
  947. >NIST is currently the FIRST secretariat; we maintain an anonymous ftp
  948. >server with a directory of FIRST information (csrc.ncsl.nist.gov:
  949. >~/pub/first).  This directory contains a contact file that lists the
  950. >current members and their constituencies and contact information
  951. >(filename "first-contacts").
  952.  
  953. >While CERT is a great organization, other response teams who do handle
  954. >incidents on their parts of the Internet merit some mention as well -
  955. >perhaps mentioning the existence of this file would help to do that in a
  956. >limited space.
  957.  
  958. The file mentioned is a comprehensive listing of contact points per
  959. network for security incidents.  It is too large to reproduce here, I
  960. suggest that the reader obtains a copy for his/her self by the means
  961. given.
  962. ------------------------------------------------------------------
  963.  
  964. Q.10 What is a firewall?
  965.  
  966. A (Internet) firewall is a machine which is attached (usually) between
  967. your site and a wide area network.  It provides controllable filtering
  968. of network traffic, allowing restricted access to certain internet port
  969. numbers (ie: services that your machine would otherwise provide to the
  970. network as a whole) and blocks access to pretty well everything else.
  971. Similar machines are available for other network types, too.
  972.  
  973. Firewalls are an effective "all-or-nothing" approach to dealing with
  974. external access security, and they are becoming very popular, with the
  975. rise in Internet connectivity.
  976.  
  977. For more information on these sort of topics, see the Gateway paper by
  978. [Cheswick], below.
  979. ------------------------------------------------------------------
  980.  
  981. Q.11 Why shouldn't I use setuid shell scripts?
  982.  
  983. You shouldn't use them for a variety of reasons, mostly involving bugs
  984. in the Unix kernel.  Here are a few of the more well known problems,
  985. some of which are fixed on more recent operating systems.
  986.  
  987. 1) If the script begins "#!/bin/sh" and a link (symbolic or otherwise)
  988. can be made to it with the name "-i", a setuid shell can be immediately
  989. obtained because the script will be invoked: "#!/bin/sh -i", ie: an
  990. interactive shell.
  991.  
  992. 2) Many kernels suffer from a race condition which can allow you to
  993. exchange the shellscript for another executable of your choice between
  994. the times that the newly exec()ed process goes setuid, and when the
  995. command interpreter gets started up.  If you are persistent enough, in
  996. theory you could get the kernel to run any program you want.
  997.  
  998. 3) The IFS bug: the IFS shell variable contains a list of characters to
  999. be treated like whitespace by a shell when parsing command names.  By
  1000. changing the IFS variable to contain the "/" character, the command
  1001. "/bin/true" becomes "bin true".
  1002.  
  1003. All you need do is export the modified IFS variable, install a command
  1004. called "bin" in your path, and run a setuid script which calls
  1005. "/bin/true".  Then "bin" will be executed whilst setuid.
  1006.  
  1007. If you really must write scripts to be setuid, either
  1008.  
  1009.   a) Put a setuid wrapper in "C" around the script, being very careful
  1010.   to reset IFS and PATH to something sensible before exec()ing the
  1011.   script.  If your system has runtime linked libraries, consider the
  1012.   values of the LD_LIBRARY_PATH also.
  1013.  
  1014.   b) Use a scripting language like Perl which has a safe setuid
  1015.   facility, and is proactively rabid about security.
  1016.  
  1017. - but really, it's safest not to use setuid scripts at all.
  1018. ------------------------------------------------------------------
  1019.  
  1020. Q.12 Why shouldn't I leave "root" permanently logged on the console?
  1021.  
  1022. Using a 'smart' terminal as console and leaving "/dev/console" world
  1023. writable whilst "root" is logged in is a potential hole.  The terminal
  1024. may be vulnerable to remote control via escape sequences, and can be
  1025. used to 'type' things into the root shell.  The terminal type can
  1026. usually be obtained via the "ps" command.
  1027.  
  1028. Various solutions to this can be devised, usually by giving the console
  1029. owner and group-write access only , and then using the setgid mechanism
  1030. on any program which has need to output to the console (eg: "write").
  1031. ------------------------------------------------------------------
  1032.  
  1033. Q.13 Why shouldn't I create Unix accounts with null passwords?
  1034.  
  1035. Creating an unpassworded account to serve any purpose is potentially
  1036. dangerous, not for any direct reason, but because it can give a cracker
  1037. a toehold.
  1038.  
  1039. For example, on many systems you will find a unpassworded user "sync",
  1040. which allows the sysman to sync the disks without being logged in.  This
  1041. appears to be both safe and innocuous.
  1042.  
  1043. The problem with this arises if your system is one of the many which
  1044. doesn't do checks on a user before authorising them for (say) FTP.  A
  1045. cracker might be able to connect to your machine for one of a variety of
  1046. FTP methods, pretending to be user "sync" with no password, and then
  1047. copy your password file off for remote cracking.
  1048.  
  1049. Although there are mechanisms to prevent this sort of thing happening in
  1050. most modern vesions of Unix, to be totally secure requires an in-depth
  1051. knowledge of every package on your system, and how it deals with the
  1052. verification of users.  If you can't be sure, it's probably better not
  1053. to leave holes like this around.
  1054.  
  1055. Another hole that having null-password accounts opens up is the
  1056. possibility (on systems with runtime linked libraries) of spoofing
  1057. system software into running your programs as the "sync" user, by
  1058. changing the LD_LIBRARY_PATH variable to a library of your own devising,
  1059. and running "login -p" or "su" to turn into that user.
  1060.  
  1061.  
  1062. >From: chowes@sfu.ca
  1063. >Don't forget LD_LIBRARY_PRELOAD!  You can point it to a library that
  1064. >contains routines to override LD_LIBRARY_PATH routines.  Main advantage
  1065. >is that the library is a lot smaller by virtue of only having the
  1066. >doctored routines, not *every* routine; and also that some people
  1067. >forget to protect both.
  1068.  
  1069. [Just how many more of these LD_* variables ARE there ? - Alec]
  1070.  
  1071.  
  1072. >From: barnett@alydar.crd.ge.com (Bruce Barnett)
  1073. >
  1074. >One more thing you may want to mention is that each network service must
  1075. >be checked to see if there is any security problem.  Not all services
  1076. >use the shell entry in a passwd file.  Therefore having a null password
  1077. >make allow other services to break into the account.
  1078. >
  1079. >For instance, some systems that provide remote file access uses the
  1080. >username and password to verify access.  The shell entry is not used.
  1081. >
  1082. >Therefore it is possible for someone to use the "sync" account to
  1083. >"mount" a Unix file system, getting access to the account without using
  1084. >the shell.
  1085. >
  1086. >To be precise, I used Sun's TOPS service on a Macintosh to mount a Unix
  1087. >file system thru the sync account as it didn't have any password.  I has
  1088. >user ID "1" when I did this.  Don't know if this needs to be added to
  1089. >the FAQ...  I did notify Sun a while ago about this bug....
  1090. ------------------------------------------------------------------
  1091.  
  1092. Q.14 What security holes are associated with X-windows (and other WMs)?
  1093.  
  1094. Lots, some which affect use of X only, and some which impact the
  1095. security of the entire host system.
  1096.  
  1097. I would prefer not to go into too much detail here, and would refer any
  1098. reader reader looking for detailed information to the other FAQ's in
  1099. relevant newsgroups.  (comp.windows.*)
  1100.  
  1101. One point I will make is that X is one of those packages which often
  1102. generates "Incompatible Usage" security problems, for instance the
  1103. ability for crackers to run xsessions on hosts under accounts with no
  1104. password (eg: sync), if it is improperly set up.  Read the question
  1105. about unpassworded accounts in this FAQ.
  1106. ------------------------------------------------------------------
  1107.  
  1108. Q.15 What security holes are associated with NFS?
  1109.  
  1110. Lots, mostly to do with who you export your disks to, and how.  The
  1111. security of NFS relies heavily upon who is allowed to mount the files
  1112. that a server exports, and whether they are exported read only or not.
  1113.  
  1114. The exact format for specifying which hosts can mount an exported
  1115. directory varies between Unix implementations, but generally the
  1116. information is contained within the file "/etc/exports".
  1117.  
  1118. This file contains a list of directories and for each one, it has a
  1119. series of either specific "hosts" or "netgroups" which are allowed to
  1120. NFS mount that directory.  This list is called the "access list".
  1121.  
  1122. The "hosts" are individual machines, whilst "netgroups" are combinations
  1123. of hosts and usernames specified in "/etc/netgroup".  These are meant to
  1124. provide a method of finetuning access.  Read the relevant manual page
  1125. for more information about netgroups.
  1126.  
  1127. The exports file also contains information about whether the directory
  1128. is to be exported as read-only, read-write, and whether super-user
  1129. access is to be allowed from clients which mount that directory.
  1130.  
  1131. The important point to remember is that if the access list for a
  1132. particular directory in /etc/exports contains:
  1133.  
  1134. 1) <nothing>
  1135.  
  1136. Your directory can be mounted by anyone, anywhere.
  1137.  
  1138. 2) <a specific hostname>
  1139.  
  1140. Your directory can be mounted by anyone permitted to run the mount
  1141. command at hostname.  This might not be a trustworthy person; for
  1142. instance, if the machine is a PC running NFS, it could be anyone.
  1143.  
  1144. 3) <a netgroup name>
  1145.  
  1146. If the netgroup:
  1147.  
  1148. a) is empty, anyone can mount your directory, from anywhere.
  1149.  
  1150. b) contains "(,,)", anyone can mount your directory, from anywhere.
  1151.  
  1152. c) contains the name of a netgroup which is empty or contains "(,,)",
  1153.    anyone can mount your directory, from anywhere.
  1154.  
  1155. d) contains "(hostname,,)", anyone on the named host who is permissioned
  1156.    to mount files can mount your directory.
  1157.  
  1158. e) contains "(,username,)", the named user can mount your directory,
  1159.    from anywhere.
  1160.  
  1161. 4) <a word which is neither a hostname or a netgroup>
  1162.  
  1163. If you meant to export the directory to the host "athena" but actually
  1164. type "ahtena", the word "ahtena" is taken as a netgroup name, is found
  1165. to be an empty netgroup, and thus the directory can be mounted by
  1166. anyone, anywhere.
  1167.  
  1168. So, if you aren't careful about what you put into /etc/exports and
  1169. /etc/netgroup you could find that a user with a PC could
  1170.  
  1171.   a) mount your mainframe filestore as a network disk
  1172.   b) edit your /etc/passwd or .rhosts or /etc/hosts.equiv ...
  1173.   c) log into your mainframe as another user, possibly "root"
  1174.  
  1175. Disclaimer: The above information may not be true for all platforms
  1176. which provide an NFS serving capability, but is true for all of the ones
  1177. in my experience (Alec).  It should be noted that the SAFE way to create
  1178. an "empty" netgroup entry is:
  1179.  
  1180.                ngname (-,-,-)
  1181.  
  1182. Which is a netgroup which matches no-one on no-host on no-NIS-domain.
  1183.  
  1184. >From: Mark Crispin <mrc@EDU.Washington.CAC.Tomobiki-Cho>
  1185. >
  1186. >NFS is far more insecure than the FAQ implies.  It does not require
  1187. >any carelessness in export files, since the only thing the export file
  1188. >does is be helpful in disclosing the key that an NFS client needs to
  1189. >unlock your system.  Means exist to guess these keys.  It is prudent,
  1190. >to say the least, to configure your routers to forbid NFS traffic from
  1191. >outside your organization.
  1192.  
  1193. [...this is true; I just haven't had time to document it yet...]
  1194. ------------------------------------------------------------------
  1195.  
  1196. Q.16 How can I generate safe passwords?
  1197.  
  1198. You can't.  The key word here is GENERATE.  Once an algorithm for
  1199. creating passwords is specified using upon some systematic method, it
  1200. merely becomes a matter of analysing your algorithm in order to find
  1201. every password on your system.
  1202.  
  1203. Unless the algorithm is very subtle, it will probably suffer from a very
  1204. low period (ie: it will soon start to repeat itself) so that either:
  1205.  
  1206.   a) a cracker can try out every possible output of the password
  1207.   generator on every user of the system, or
  1208.  
  1209.   b) the cracker can analyse the output of the password program,
  1210.   determine the algorithm being used, and apply the algorithm to other
  1211.   users to determine their passwords.
  1212.  
  1213. A beautiful example of this (where it was disastrously assumed that a
  1214. random number generator could generate an infinite number of random
  1215. passwords) is detailed in [Morris & Thompson].
  1216.  
  1217. The only way to get a reasonable amount of variety in your passwords
  1218. (I'm afraid) is to make them up.  Work out some flexible method of your
  1219. own which is NOT based upon:
  1220.  
  1221.   1) modifying any part of your name or name+initials
  1222.   2) modifying a dictionary word
  1223.   3) acronyms
  1224.   4) any systematic, well-adhered-to algorithm whatsoever
  1225.  
  1226. For instance, NEVER use passwords like:
  1227.  
  1228. alec7         - it's based on the users name (& it's too short anyway)
  1229. tteffum        - based on the users name again
  1230. gillian        - girlfiends name (in a dictionary)
  1231. naillig        - ditto, backwards
  1232. PORSCHE911     - it's in a dictionary
  1233. 12345678     - it's in a dictionary (& people can watch you type it easily)
  1234. qwertyui     - ...ditto...
  1235. abcxyz        - ...ditto...
  1236. 0ooooooo    - ...ditto...
  1237. Computer     - just because it's capitalised doesn't make it safe
  1238. wombat6     - ditto for appending some random character
  1239. 6wombat     - ditto for prepending some random character
  1240. merde3        - even for french words...
  1241. mr.spock     - it's in a sci-fi dictionary
  1242. zeolite     - it's in a geological dictionary
  1243. ze0lite     - corrupted version of a word in a geological dictionary
  1244. ze0l1te     - ...ditto...
  1245. Z30L1T3     - ...ditto...
  1246.  
  1247. I hope that these examples emphasise that ANY password derived from ANY
  1248. dictionary word (or personal information), modified in ANY way,
  1249. constitutes a potentially guessable password.
  1250.  
  1251. For more detailed information in the same vein, you should read the
  1252. APPENDIX files which accompany Crack [Muffett].
  1253. ------------------------------------------------------------------
  1254.  
  1255. Q.17 Why are passwords so important?
  1256.  
  1257. Because they are the first line of defence against interactive attacks
  1258. on your system.  It can be stated simply: if a cracker cannot interact
  1259. with your system(s), and he has no access to read or write the
  1260. information contained in the password file, then he has almost no
  1261. avenues of attack left open to break your system.
  1262.  
  1263. This is also why, if a cracker can at least read your password file (and
  1264. if you are on a vanilla modern Unix, you should assume this) it is so
  1265. important that he is not able to break any of the passwords contained
  1266. therein.  If he can, then it is also fair to assume that he can (a) log
  1267. on to your system and can then (b) break into "root" via an operating
  1268. system hole.
  1269. ------------------------------------------------------------------
  1270.  
  1271. Q.18 How many possible passwords are there?
  1272.  
  1273. Most people ask this at one time or another, worried that programs like
  1274. Crack will eventually grow in power until they can do a completely
  1275. exhaustive search of all possible passwords, to break into a specific
  1276. users' account - usually root.
  1277.  
  1278. If (to simplify the maths) we make the assumptions that:
  1279.  
  1280.   1) Valid passwords are created from a set of 62 chars [A-Za-z0-9]
  1281.   2) Valid passwords are to be between 5 and 8 chars long
  1282.  
  1283. Then the size of the set of all valid passwords is: (in base 62)
  1284.  
  1285.                    100000b62 +
  1286.                   1000000b62 +
  1287.                  10000000b62 +
  1288.                 100000000b62 =
  1289.                 ---------
  1290.                 111100000b62
  1291.  
  1292.               ~= 222000000000000 (decimal)
  1293.  
  1294. A figure which is far too large to usefully undertake an exhaustive
  1295. search with current technologies.  Don't forget, however, that passwords
  1296. CAN be made up with even more characters then this; you can use <space>,
  1297. all the punctuation characters, and symbols (~<>|\#$%^&*) too.  If you
  1298. can use some of all the 95 non-control characters in passwords, this
  1299. increases the search space for a cracker to cover even further.
  1300.  
  1301. However, it's still MUCH more efficient for a cracker to get a copy of
  1302. "Crack", break into ANY account on the system (you only need one), log
  1303. onto the machine, and spoof his way up to root priviledges via operating
  1304. systems holes.
  1305.  
  1306. Take comfort from these figures.  If you can slam the door in the face
  1307. of a potential crackers with a robust password file, you have sealed
  1308. most of the major avenues of attack immediately.
  1309. ------------------------------------------------------------------
  1310.  
  1311. Q.19 Where can I get more information?
  1312.  
  1313. Books:
  1314.  
  1315. [Kochan & Wood]
  1316. Unix System Security
  1317.  
  1318. A little dated for modern matters, but still a very good book on the
  1319. basics of Unix security.
  1320.  
  1321. [Spafford & Garfinkel]
  1322. Practical Unix Security
  1323.  
  1324. This wonderful book is a worthy successor to the above, and covers a
  1325. wide variety of the topics which the Unix (and some non Unix) system
  1326. manager of the 90's will come across.
  1327.  
  1328. >From: Gene Spafford <spaf@cs.purdue.edu>
  1329. >Mention appendix E in "Practical Unix Security."
  1330.  
  1331. Okay: Appendix E contains an extensive bibliography with even more
  1332. pointers to security books than this FAQ contains.
  1333.  
  1334. [Stoll]
  1335. The Cuckoo's Egg
  1336.  
  1337. A real life 1980's thriller detailing the tracing of a cracker from
  1338. Berkeley across the USA and over the Atlantic to Germany.  An excellent
  1339. view from all points: a good read, informative about security, funny,
  1340. and a good illustration of the cracker psyche.  Contains an excellent
  1341. recipie for chocolate chip cookies.
  1342.  
  1343. A videotape of the "NOVA" (PBS's Science Program on TV) episode that
  1344. explained/reenacted this story is available from PBS Home Video.  They
  1345. have a toll-free 800 number within North America.
  1346.  
  1347. I believe that this program was aired on the BBC's "HORIZON" program,
  1348. and thus will be available from BBC Enterprises, but I haven't checked
  1349. this out yet - Alec
  1350.  
  1351. THE TECHNICAL PAPER containing details of the "Cuckoo's Egg" breakin is
  1352. called "Stalking the wily hacker" in an issue of CACM which I will dig
  1353. out and get the proper reference for, in my copious free time - Alec
  1354.  
  1355.  
  1356. [Raymond] (Ed.)
  1357. The New Hackers Dictionary/Online Jargon File
  1358.  
  1359. A mish-mash of history and dictionary definitions which explains why it
  1360. is so wonderful to be a hacker, and why those crackers who aren't
  1361. hackers want to be called "hackers".  The Jargon File version is
  1362. available online - check an archie database for retails. 
  1363. Latest revision: 3.00.
  1364.  
  1365. [Gasser]
  1366. Building a Secure Computer System.
  1367.  
  1368. By Morrie Gasser, and van Nostrand Reinhold; explains what is required
  1369. to build a secure computer system.
  1370.  
  1371. [Rainbow Series] (Especially the "Orange Book")
  1372.  
  1373. >From: epstein@trwacs.fp.trw.com (Jeremy Epstein)
  1374. >The "Rainbow Series" consists of about 25 volumes.  Some of the
  1375. >more interesting ones are:
  1376. >
  1377. >    The "Orange Book", or Trusted Computer Systems Evaluation
  1378. >        Criteria, which describes functional and assurance
  1379. >        requirements for computer systems
  1380. >
  1381. >    Trusted Database Interpretation, which talks both about
  1382. >        trusted databases and building systems out of trusted
  1383. >        components
  1384. >
  1385. >    Trusted Network Interpretation, which (obviously) talks
  1386. >        about networked systems
  1387. >
  1388. >A (possibly) complete list is:
  1389. >    -- Department of Defense Trusted Computer System Evaluation Criteria
  1390. >       (TCSEC), aka the "Orange Book"
  1391. >    -- Computer Security Subsystem Interpretation of the TCSEC
  1392. >    -- Trusted Data Base Management System Interpretation of the TCSEC
  1393. >    -- Trusted Network Interpretation of the TCSEC
  1394. >    -- Trusted Network Interpretation Environments Guideline -- Guidance
  1395. >       for Applying the Trusted Network Interpretation
  1396. >    -- Trusted Unix Working Group (TRUSIX) Rationale for Selecting
  1397. >       Access Control List Features for the Unix System
  1398. >    -- Trusted Product Evaulations -- A Guide for Vendors
  1399. >    -- Computer Security Requirements -- Guidance for Applying the DoD
  1400. >       TCSEC in Specific Environments
  1401. >    -- Technical Rationale Behind CSC-STD-003-85: Computer Security
  1402. >       Requirements
  1403. >    -- Trusted Product Evaluation Questionnaire
  1404. >    -- Rating Maintenance Phase -- Program Document
  1405. >    -- Guidelines for Formal Verification Systems
  1406. >    -- A Guide to Understanding Audit in Trusted Systems
  1407. >    -- A Guide to Understanding Trusted Facility Management
  1408. >    -- A Guide to Understanding Discretionary Access Control in Trusted
  1409. >       Systems
  1410. >    -- A Guide to Understanding Configuration Management in Trusted Systems
  1411. >    -- A Guide to Understanding Design Documentation in Trusted Systems
  1412. >    -- A Guide to Understanding Trusted Distribution in Trusted Systems
  1413. >    -- A Guide to Understanding Data Remanence in Automated Information
  1414. >       Systems
  1415. >    -- Department of Defense Password Management Guideline
  1416. >    -- Glossary of Computer Security Terms
  1417. >    -- Integrity in Automated Information Systems
  1418. >
  1419. >You can get your own copy (free) of any or all of the books by
  1420. >writing or calling:
  1421. >
  1422. >    INFOSEC Awareness Office
  1423. >    National Computer Security Centre
  1424. >    9800 Savage Road
  1425. >    Fort George G. Meade, MD  20755-6000
  1426. >
  1427. >If you ask to be put on the mailing list, you'll get a copy of each new
  1428. >book as it comes out (typically a couple a year).
  1429. ------------------------------------------------------------------
  1430. >From: kleine@fzi.de (Karl Kleine)
  1431. >I was told that this offer is only valid for US citizens ("We only send
  1432. >this stuff to a US postal address").  Non-US people have to PAY to get
  1433. >hold of these documents.  They can be ordered from NTIS, the National
  1434. >Technical Information Service:
  1435. >    NTIS,
  1436. >    5285 Port Royal Rd,
  1437. >    Springfield VA 22151,
  1438. >    USA
  1439. ------------------------------------------------------------------
  1440. >From: Ulf Kieber <kieber@de.tu-dresden.inf.freia>
  1441. >just today I got my set of the Rainbow Series.
  1442. >
  1443. >There are three new books:
  1444. > -- A Guide to Understanding Trusted Recovery in Trusted Systems
  1445. > -- A Guide to Understanding Identification and Authentication in Trusted
  1446. >    Systems
  1447. > -- A Guide to Writing the Security Features User's Guide for Trusted Systems
  1448. >
  1449. >They also shipped
  1450. > -- Advisory Memorandum on Office Automation Security Guideline
  1451. >issued by NTISS.  Most of the books (except three or four) can also be
  1452. >purchased from
  1453. >
  1454. >    U.S. Government Printing Office
  1455. >    Superintendent of Documents
  1456. >    Washington, DC 20402        phone: (202) 783-3238
  1457. >
  1458. >>-- Integrity in Automated Information Systems
  1459. >THIS book was NOT shipped to me--I'm not sure if it is still in
  1460. >the distribution.
  1461. ------------------------------------------------------------------
  1462. >From: epstein@trwacs.fp.trw.com (Jeremy Epstein)
  1463. >...
  1464. >The ITSEC (Information Technology Security Evaluation Criteria) is a
  1465. >harmonized document developed by the British, German, French, and
  1466. >Netherlands governments.  It separates functional and assurance
  1467. >requirements, and has many other differences from the TCSEC.
  1468. >
  1469. >You can get your copy (again, free/gratis) by writing:
  1470. >
  1471. >    Commission of the European Communities
  1472. >    Directorate XIII/F
  1473. >    SOG-IS Secretariat
  1474. >    Rue de la Loi 200
  1475. >    B-1049 BRUSSELS
  1476. >    Belgium
  1477. ------------------------------------------------------------------
  1478. >From: Nick Barron <nikb@uk.co.compulink.cix>
  1479. >
  1480. >...The ITSEC and associated DTI security publications (the "Green
  1481. >Books") are available for *free* (makes a change) from the DTI
  1482. >Commercial Computer Security Centre.  The contact is Fiona Williams on
  1483. >081 977 3222 or as fjw@dsg.npl.co.uk.  Hope that this is of interest.
  1484. >The ITSEC is currently being "harmonised" with the Orange Book...
  1485.  
  1486. Also note that NCSC periodically publish an "Evaluated Products List"
  1487. which is the definitive statement of which products have been approved
  1488. at what TCSEC level under which TCSEC interpretations.  This is useful
  1489. for separating the output of marketdroids from the truth.
  1490.  
  1491.  
  1492. Papers:
  1493.  
  1494. [Morris & Thompson]
  1495. Password Security, A Case History
  1496.  
  1497. A wonderful paper, first published in CACM in 1974, which is now often
  1498. to found in the Unix Programmer Docs supplied with many systems.
  1499. ------------------------------------------------------------------
  1500. [Curry]
  1501. Improving the Security of your Unix System.
  1502.  
  1503. A marvellous paper detailing the basic security considerations every
  1504. Unix systems manager should know.  Available as "security-doc.tar.Z"
  1505. from FTP sites (check an Archie database for your nearest site.)
  1506. ------------------------------------------------------------------
  1507. [Klein]
  1508. Foiling the Cracker: A Survey of, and Improvements to, Password Security.
  1509.  
  1510. A thorough and reasoned analysis of password cracking trends, and the
  1511. reasoning behind techniques of password cracking.  Your nearest copy
  1512. should be easily found via Archie, searching for the keyword "Foiling".
  1513. ------------------------------------------------------------------
  1514. [Cheswick]
  1515. The Design of a Secure Internet Gateway.
  1516.  
  1517. Great stuff.
  1518.  
  1519. Host: research.att.com
  1520. Location: dist/internet_security
  1521.  
  1522.       FILE      rw-rw-r--    33836     Jul 24 1992    gateway.dvi
  1523.       FILE      rw-rw-r--    42373     Aug 19 1991    gateway.ps
  1524.       FILE      rw-rw-r--    674169    Jun 28 12:23   gateway_slides.ps
  1525. ------------------------------------------------------------------
  1526. [Cheswick]
  1527. An Evening With Berferd: in which a Cracker is Lured, Endured & Studied.
  1528.  
  1529. Funny and very readable, somewhat in the style of [Stoll] but more
  1530. condensed.
  1531.  
  1532. Host: research.att.com
  1533. Location: dist/internet_security
  1534.  
  1535.       FILE      rw-rw-r--    41612     Jul 24 1992    berferd.dvi
  1536.       FILE      rw-rw-r--    81747     Jul 24 1992    berferd.ps
  1537. ------------------------------------------------------------------
  1538. [Bellovin89]
  1539. Security Problems in the TCP/TP Protocol Suite.
  1540.  
  1541. A description of security problems in many of the protocols widely used
  1542. in the Internet.  Not all of the discussed protocols are official
  1543. Internet Protocols (i.e.  blessed by the IAB), but all are widely used.
  1544. The paper originally appeared in ACM Computer Communications Review,
  1545. Vol 19, No 2, April 1989. 
  1546.  
  1547. Host: research.att.com
  1548. Location: dist/internet_security
  1549.  
  1550.       FILE      rw-rw-r--    48703     Aug 22 1991    ipext.ps.Z
  1551. ------------------------------------------------------------------
  1552. [Bellovin91]
  1553. Limitations of the Kerberos Authentication System
  1554.  
  1555. A discussion of the limitations and weaknesses of the Kerberos
  1556. Authentication System.  Specific problems and solutions are presented.
  1557. Very worthwhile reading.  Available on research.att.com via anonymous
  1558. ftp, originally appeared in ACM Computer Communications Review but the
  1559. revised version (identical to the online version, I think) appeared in
  1560. the Winter 1991 USENIX Conference Proceedings.
  1561. ------------------------------------------------------------------
  1562. [Muffett]
  1563. Crack documentation.
  1564.  
  1565. The information which accompanies Crack contains a whimsical explanation
  1566. of password cracking techniques and the optimisation thereof, as well as
  1567. an incredibly long and silly diatribe on how to not choose a crackable
  1568. password.  A good read for anyone who needs convincing that password
  1569. cracking is _really easy_.
  1570. ------------------------------------------------------------------
  1571. [Farmer]
  1572. COPS
  1573.  
  1574. Read the documentation provided with COPS.  Lots of hints and
  1575. philosophy.  The where, why and how behind the piece of security
  1576. software that started it all.
  1577. ------------------------------------------------------------------
  1578. [CERT]
  1579. maillists/advisories/clippings
  1580.  
  1581. CERT maintains archives of useful bits of information that it gets from
  1582. USENET and other sources.  Also archives of all the security
  1583. "advisories" that it has posted (ie: little messages warning people that
  1584. there is a hole in their operating system, and where to get a fix)
  1585. ------------------------------------------------------------------
  1586. [OpenSystemsSecurity]
  1587.  
  1588. A notorious (but apparently quite good) document, which has been dogged
  1589. by being in a weird postscript format.
  1590.  
  1591. >From: amesml@monu1.cc.monash.edu.au (Mark L. Ames)
  1592.  
  1593. >I've received many replies to my posting about Arlo Karila's paper,
  1594. >including the news (that I and many others have missed) that a
  1595. >manageable postscript file and text file are available via anonymous ftp
  1596. >from ajk.tele.fi (131.177.5.20) in the directory PublicDocuments.
  1597.  
  1598. These are all available for FTP browsing from "cert.org".
  1599. ------------------------------------------------------------------
  1600. [RFC-1244]
  1601. Site Security Handbook
  1602.  
  1603. RFC-1244 : JP Holbrook & JK Reynolds (Eds.) "The Site Security Handbook"
  1604. covering incident handling and prevention.  July 1991; 101 pages
  1605. (Format: TXT=259129 bytes), also called "FYI 8"
  1606. ------------------------------------------------------------------
  1607. [USENET]
  1608. comp.virus: for discussions of virii and other nasties, with a PC bent.
  1609. comp.unix.admin: for general administration issues
  1610. comp.unix.<platform>: for the hardware/software that YOU use.
  1611. comp.protocols.tcp-ip: good for problems with NFS, etc.
  1612. ------------------------------------------------------------------
  1613.  
  1614. Q.20 How silly can people get?
  1615.  
  1616. This section (which I hope to expand) is a forum for learning by
  1617. example; if people have a chance to read about real life (preferably
  1618. silly) security incidents, it will hopefully instill in readers some of
  1619. the zen of computer security without the pain of experiencing it.
  1620.  
  1621. If you have an experience that you wish to share, please send it to the
  1622. editors.  It'll boost your karma no end.
  1623. ------------------------------------------------------------------
  1624. From: aem@aber.ac.uk
  1625.  
  1626. The best story I have is of a student friend of mine (call him Bob) who
  1627. spent his industrial year at a major computer manufacturing company.  In
  1628. his holidays, Bob would come back to college and play AberMUD on my
  1629. system.
  1630.  
  1631. Part of Bob's job at the company involved systems management, and the
  1632. company was very hot on security, so all the passwords were random
  1633. strings of letters, with no sensible order.  It was imperative that the
  1634. passwords were secure (this involved writing the random passwords down
  1635. and locking them in big, heavy duty safes).
  1636.  
  1637. One day, on a whim, I fed the MUD persona file passwords into Crack as a
  1638. dictionary (the passwords were stored plaintext) and then ran Crack on
  1639. our systems password file.  A few student accounts came up, but nothing
  1640. special.  I told the students concerned to change their passwords - that
  1641. was the end of it.
  1642.  
  1643. Being the lazy guy I am, I forgot to remove the passwords from the Crack
  1644. dictionary, and when I posted the next version to USENET, the words went
  1645. too.  It went to the comp.sources.misc moderator, came back over USENET,
  1646. and eventually wound up at Bob's company.  Round trip: ~10,000 miles.
  1647.  
  1648. Being a cool kinda student sysadmin dude, Bob ran the new version of
  1649. Crack when it arrived.  When it immediately churned out the root
  1650. password on his machine, he damn near fainted...
  1651.  
  1652. The moral of this story is: never use the same password in two different
  1653. places, and especially on untrusted systems (like MUDs).
  1654. ------------------------------------------------------------------
  1655. From: zerkle@cs.ucdavis.edu (Dan Zerkle)
  1656.  
  1657. I've got a good one.
  1658.  
  1659. Our department has a room of workstations for graduate students who have
  1660. not started on a research project.  If you don't have an account, you
  1661. can still use these workstations as terminals.  There is a special,
  1662. null-password account called "terminal".  This account runs a short
  1663. program which accepts a machine name, a user name and a password, then
  1664. runs rlogin to connect you to the machine of your choice.
  1665.  
  1666. Awhile back, I used this system, but accidentally hit RETURN before I
  1667. typed my user name.  Since there was no way to back out, I also hit
  1668. RETURN for the password.
  1669.  
  1670. As it happened, the machine to which I was connecting had an entry in
  1671. the password file like this:
  1672.  
  1673. ::0:1:::    (this is a YP/NIS password entry, missing a "+" symbol)
  1674.  
  1675. You can imagine how startled I was when the terminal program connected
  1676. me and logged me in as root! I sent mail to the system administrator (as
  1677. root, just to irk him), and got the hole patched within a day.
  1678.  
  1679. Ordinarily, the entry in the password file was not a problem.  Normal
  1680. methods of logging in require you to supply a user name.  However, the
  1681. "terminal" login accepted the null string as a user name and passed it
  1682. on (via rlogin) to the host computer.  Thus, purely by accident, I
  1683. managed to break root on that machine.
  1684.  
  1685.                     -Dan
  1686. --------------------------------------------------------------------
  1687. From: BENNETT@dstos3.dsto.gov.au (John Bennett)
  1688.  
  1689. Hi Alec,
  1690.  
  1691. You asked for contributions for "How silly can people get ?"
  1692. Here is a simple but true and possibly oft repeated story...
  1693.  
  1694. My son bought a new car, so we went down to the local office of the
  1695. Royal Automobile Association to insure it.  A Charming Young Lady was
  1696. very helpful and efficient as we sorted out the details of the policy.
  1697. Once the paperwork was written, the CYL went across the office to a
  1698. computer terminal, sat down, and called to another CYL
  1699.  
  1700. "Is the password still (censored, name of computer company) ?".
  1701.  
  1702. Regards,
  1703.  
  1704. John Bennett bennett@dstos3.dsto.gov.au
  1705. -------------------------------------------------------------------
  1706. From: Alec.Muffett@UK.Sun.COM
  1707.  
  1708. - A cautionary tale, about a friend of mine who will probably wish to
  1709.   remain anonymous, for his sins. (Hi, Ian!)
  1710.  
  1711. At a British university with a particularly paranoid (not to say rabid)
  1712. security policy, the systems administrators had changed the permissions
  1713. on the "su" command, removing world execute permission, and making it
  1714. group-execute only to members of the computing services staff. 
  1715.  
  1716. ...however, the staff were not informed enough to remove world-write
  1717. permission from /dev/console. 
  1718.  
  1719. My friend, Ian, attended this university, and on one occasion became
  1720. particularly annoyed at a fellow student-user (let's call him foobar1).
  1721.  
  1722. Foobar1 was apparently nosing round the terminals of everyone in the
  1723. room, peering over the shoulders of his fellow students, and not obeying
  1724. the rules of etiquette. 
  1725.  
  1726. So, in order to "get him back", Ian did this:
  1727.  
  1728. Ian wrote a script which, every so often, would print:
  1729.  
  1730.     BAD SU: foobar1 on tty0a at 12:34:56
  1731.  
  1732. - to the machine's console.  
  1733.  
  1734. Given that "only members of staff can use 'su' to get to root on this
  1735. system", this must have worried the operators mightily. 
  1736.  
  1737. After a few iterations of this cat-and-mouse game, Ian did:
  1738.  
  1739.     SU: foobar1 on tty0a at 12:45:03
  1740.  
  1741. - thirty seconds later, the machine crashed.  The operations team,
  1742. rather than let this horrible hacker run amok on the system, chose to
  1743. pull the plug.  They then arrived in the terminal room, hauled "foobar1"
  1744. out backwards, took him away and shouted at him for an hour or so, until
  1745. they believed that it wasn't him. 
  1746.  
  1747. I believe that Ian apologised to foobar1 eventually, but the systems
  1748. people never *did* sort it out.  The moral of this tale?
  1749.  
  1750. During an incident:
  1751.  
  1752.     1) don't panic - you might do something stupid
  1753.     2) don't trust any audit trail which is open to compromise
  1754. ------------------------------------------------------------------
  1755. Alec Muffett (alec.muffett@sun.co.uk) Sun Microsystems IR, Bagshot, Surrey, UK
  1756.                          #include <stddisclaimer.h>
  1757.  
  1758.  
  1759.  
  1760.